<template>
  <el-menu unique-opened>
    <side-menu v-for="menu of menuList" :key="menu.id" :menu="menu"/>
  </el-menu>
</template>

<script>
import SideMenu from './SideMenu'

export default {
  name: 'index',
  components: { SideMenu },
  data () {
    return {}
  },
  created () {

  },
  computed: {
    menuList () {
      return this.$store.getters['sideMenu/getMenuList']
    }
  }
}
</script>

<style scoped>

</style>
